package cn.oms.auth.provider.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author AllenChen曾晨
 * @since 2022-04-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user")
@ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户ID（唯一ID不可更改）")
    @TableField("USER_ID")
    private String userId;

    @ApiModelProperty(value = "用户名（登录用户名）")
    @TableField("USER_NAME")
    private String userName;

    @ApiModelProperty(value = "昵称")
    @TableField("USER_NICKNAME")
    private String userNickname;

    @ApiModelProperty(value = "密码")
    @TableField("USER_PASSWORD")
    private String userPassword;

    @ApiModelProperty(value = "头像地址")
    @TableField("USER_IMAGE_ADDRESS")
    private String userImageAddress;

    @ApiModelProperty(value = "邮箱")
    @TableField("USER_EMAIL")
    private String userEmail;

    @ApiModelProperty(value = "微信ID")
    @TableField("USER_WECHAT_ID")
    private String userWechatId;

    @ApiModelProperty(value = "阿里支付ID")
    @TableField("USER_ALIPY_ID")
    private String userAlipyId;

    @ApiModelProperty(value = "性别(0男 1女 2未知)")
    @TableField("USER_SEX")
    private Integer userSex;

    @ApiModelProperty(value = "生日")
    @TableField("USER_BIRTHDAY")
    private Date userBirthday;

    @ApiModelProperty(value = "电话")
    @TableField("USER_PHONE")
    private String userPhone;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("USER_MODIFY_TIME")
    private Date userModifyTime;

    @ApiModelProperty(value = "是否启动 0未启用 1启用")
    @TableField("ENABLED")
    private Integer enabled;

    @ApiModelProperty(value = "是否锁定 0未锁定 1锁定")
    @TableField("LOCKED")
    private Integer locked;

    @ApiModelProperty(value = "用户类型 (1普通用户 2缴费 3护士 4医生 5药师 6超级管理员)")
    @TableField("USER_TYPE")
    private Integer userType;

    @ApiModelProperty(value = "个人简介")
    @TableField("SELF_INTRODUCTION")
    private String selfIntroduction;

    @ApiModelProperty(value = "删除标记")
    @TableField("DEL_FLAG")
    private Integer delFlag;


}
